/*
 * Copyright (C), 2002-2017, 上海巧房信息技术有限公司
 * FileName: WxMsgFacadeImplV1.java
 * Author:   linyao
 * Date:     2017年5月5日 下午2:43:07
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.qiaofang.housewarehouse.facade.impl;

import com.qiaofang.housewarehouse.service.HouseWareHouseSampleService;
import com.qiaofang.housewarehouse.stub.bean.SampleDTO;
import com.qiaofang.housewarehouse.stub.constants.ResponseCode;
import com.qiaofang.housewarehouse.stub.facade.HouseWareHouseSampleFacade;
import com.qiaofang.housewarehouse.stub.request.SampleRequest;
import com.qiaofang.housewarehouse.stub.response.SampleResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class HouseWareHouseSampeFacadeImpl implements HouseWareHouseSampleFacade {
	private Logger logger = LoggerFactory.getLogger(HouseCollectionQualityFacadeImpl.class);

	@Autowired
	private HouseWareHouseSampleService sampleService;

	@Override
	public SampleResponse sampleMethod(SampleRequest sampleRequest) {
		SampleResponse response = new SampleResponse();
		try {
			List<SampleDTO> sampleDTOList = null;
			response.setData(sampleDTOList);
			response.setResponseCode(ResponseCode.RC_SUCCESS.getResponseCode());
			response.setResponseMessage(ResponseCode.RC_SUCCESS.getResponseMessage());
		} catch (Throwable e) {
			response.setResponseCode(ResponseCode.RC_EXCEPTION_ERROR.getResponseCode());
			response.setResponseMessage(ResponseCode.RC_EXCEPTION_ERROR.getResponseMessage());
			logger.error("HouseWareHouseSampeFacadeImpl error！",e);
		}
		return response;
	}
}
